import { createRouter, createWebHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    name: 'index',
    component: () => import('@/views/index/index.vue')
  },
  {
    path: '/mine',
    name: 'mine',
    component: () => import('@/views/mine/mine.vue')
  },
  {
    path: '/blessing-records',
    name: 'BlessingRecords',
    component: () => import('@/views/blessing-records/index.vue')
  },
  {
    path: '/ranking',
    name: 'Ranking',
    component: () => import('@/views/ranking/index.vue')
  }
]

const router = createRouter({
  history: createWebHistory(import.meta.env.VITE_APP_CONTEXT_PATH),
  routes
})

export default router
